<?php

class Homez extends CI_Controller {
		
	function index()
	{
		/*cek nih user udah login apa blom, kalo blom lempar ke halaman login*/
			if ($this->session->userdata('login') == TRUE){
				$this->load->view('homex');
			}else{
				$this->load->view('homes');
			}
		//akhir cek
	}
}